//
//  StoreDescriptionTableViewCell.m
//  Shengzhuli
//
//  Created by subook on 16/8/12.
//  Copyright © 2016年 kamangkeji. All rights reserved.
//

#import "StoreDescriptionTableViewCell.h"

@interface StoreDescriptionTableViewCell()

@property (strong, nonatomic) IBOutlet UITextField *shopNameTF;
@property (strong, nonatomic) IBOutlet UITextField *shopAddressDetailTF;
@property (strong, nonatomic) IBOutlet UITextField *shopAddressFromeUserTF;
@property (strong, nonatomic) IBOutlet UITextField *shopPrincipalPersonTF;
@property (strong, nonatomic) IBOutlet UITextField *shopPhoneTF;

@end

@implementation StoreDescriptionTableViewCell


- (void)setModel:(SellerInfoModel *)model
{
    _model = model;
    self.shopNameTF.text = model.shopName;
    self.shopAddressDetailTF.text = model.shopAddressDetail;
    self.shopAddressFromeUserTF.text = model.shopAddressDetailFromUser;
    self.shopPrincipalPersonTF.text = model.shopPrincipalPerson;
    self.shopPhoneTF.text = model.shopPhone;
}
- (void)setAddress:(NSString *)address
{
    _address = address;
    self.shopAddressDetailTF.text = address;
}
- (IBAction)addressSelect:(UIButton *)btn
{
    if (self.selectAddressBlock) {
        self.selectAddressBlock(self.shopAddressDetailTF);
    }
}

@end
